package org.desktop.web.client.emails;

import java.util.Map;

import org.desktop.web.shared.domain.entities.CustomersEnabled;
import org.desktop.web.shared.domain.entities.Email;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.sencha.gxt.data.shared.loader.PagingLoadConfig;
import com.sencha.gxt.data.shared.loader.PagingLoadResult;

@RemoteServiceRelativePath("emails")
public interface EmailService extends RemoteService {


	PagingLoadResult<Email> getEmailByUser(int idUser,Map<String,String> headers,PagingLoadConfig loadConfig) throws Exception;

	boolean delete(Map<String, String> headers, Email email) throws Exception;
	
}
